import 'package:flutter/material.dart';

/*图片*/
class Exam_6 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("图片及Icon"),
      ),
      body: Content(),
    );
  }
}

class Content extends StatelessWidget {
// accessible: &#xE914; or 0xE914 or E914
  String icons1 = "\uE914";

// error: &#xE000; or 0xE000 or E000
  String icons2 = "\uE914\uE000";

// fingerprint: &#xE90D; or 0xE90D or E90D
  String icons3 = "\uE914\uE000\uE90D";

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return ListView(
      children: <Widget>[
        Image(
          image: AssetImage("images/img1.jpg"),
          width: 200.0,
          height: 200.0,
        ),
        Image.asset(
          "images/img1.jpg",
          width: 150.0,
          height: 150.0,
        ),
        Image(
          image: NetworkImage(
              "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577955657994&di=6eef3d7d746beab8f8582d344a1dc61e&imgtype=0&src=http%3A%2F%2Fimg0.pcgames.com.cn%2Fpcgames%2F1807%2F25%2F7161693_1.png"),
          width: 200.0,
          height: 200.0,
          fit: BoxFit.cover,
        ),
        Image.network(
          "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1577955870843&di=ac86b0a4689832297a642264bb6076f0&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2F252c1ada7d06029eb0fe1058f661c3e8e35242d7.jpg",
          width: 150.0,
          height: 150.0,
        ),
        Text(
          icons1,
          style: TextStyle(
              fontFamily: "MaterialIcons",
              fontSize: 50.0,
              color: Colors.deepOrangeAccent),
        ),
        Text(
          icons2,
          style: TextStyle(
              fontFamily: "MaterialIcons",
              fontSize: 50.0,
              color: Colors.deepOrangeAccent),
        ),
        Text(
          icons3,
          style: TextStyle(
              fontFamily: "MaterialIcons",
              fontSize: 50.0,
              color: Colors.deepOrangeAccent),
        ),
      ],
    );
  }
}
